﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class configuration_system_iframe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Response.CacheControl = "no-cache";
        }
        string sh = Request.QueryString["heights"];
        select_iframe.InnerHtml = select_iframelist(sh);
    }
    string select_iframelist(string sh)
    {
        string liststr = "";
        string srcstr = "";
        string rq = Request.QueryString["FileType"];
        string arrrq = rq.Split('|')[0];
        switch (arrrq)
        {
            case "newsclass":
                srcstr = "../../configuration/system/selectArea.aspx";
                break;
            case "Productclass":
                srcstr = "../../configuration/system/selectProCategories.aspx";
                break;
            case "batchArea":
                srcstr = "../../configuration/system/batchSelectArea.aspx";
                break;
            default:
                break;
        }
        liststr += "<iframe src=\"" + srcstr + "\" frameborder=\"0\" id=\"select_main\" scrolling=\"yes\" name=\"select_main\" width=\"100%\" height=\"" + sh + "px\" />";
        return liststr;
    }
}
